<?php

include "../src/Autoload.php";


$book = new BookSpider\Spider;
$html = $book->fileGetHtml('http://www.23wx.com/html/62/62925/');
foreach($html->find('td.L a') as $k=>$element)
    echo $k.'.'.$element->href ,'-',$element->plaintext. "\n";
exit;

$config = include "../23wx/config.php";

$dd = new BookSpider\Provider\DingDian;

exit;
var_dump($config);

$dd->category();
// test Spider
exit;

$book = new BookSpider\Spider;

$http = new BookSpider\Http;
$htm = $http ->get('http://www.23wx.com/html/62/62925/', array('host'=>'www.23wx.com')) ;
echo strlen($htm);
echo $htm;

echo $book ->checkEncoding($htm);

echo $book ->toUtf8($htm);

